package com.cat.adapter.class_adapter;

/**
 * @author cat
 * @version 2025/5/21 10:10
 * @description 用户类
 * @since JDK17
 */

public class Client {
    public static void main(String[] args) {
        // 1. 创建计算机对象
        Computer computer = new Computer();
        // 2. 从SD卡中读取数据
        String msg = computer.readSD(new SDCardImpl());
        System.out.println(msg);
        System.out.println("==============================");
        // 从TF卡中读取数据
        String msg2 = computer.readSD(new SDAdapterTF());
        System.out.println(msg2);
    }
}
